package com.istock.monitor.agent.config;

import java.util.Properties;

public class PropertiesLoader {

	private Properties prop = new Properties();

	private static PropertiesLoader loader = new PropertiesLoader();
	
	private PropertiesLoader() {}
	
	public static PropertiesLoader getInstance() {
		return loader;
	}
	
	public String get(String key) {
		return prop.getProperty(key);
	}

	public String get(String key, String def) {
		return prop.getProperty(key, def);
	}

	public Properties getProperties() {
		return prop;
	}

	public void mergeProperties(Properties p) {
		if (p != null) {
			prop.putAll(p);
		}
	}
	
	
}
